package com.andaily.domain.log;

import com.andaily.domain.AbstractDomain;
import com.andaily.domain.user.User;

/**
 * @author Shengzhao Li
 */
public class LogComment extends AbstractDomain {

    /**
     * The comment creator.
     */
    private User creator;
    /**
     * The comment owner: Log
     */
    private Log log;
    /**
     * The comment content
     */
    private String content;
    /**
     * The comment parent, if  user reply a comment.
     * Optional.
     */
    private LogComment parentLogComment;

    public LogComment() {
    }

    public LogComment(User creator, Log log, String content) {
        this.creator = creator;
        this.log = log;
        this.content = content;
    }

    public User creator() {
        return creator;
    }

    public Log log() {
        return log;
    }

    public LogComment parentLogComment() {
        return parentLogComment;
    }

    public String content() {
        return content;
    }
}
